<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
       <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>

<script src="../js/jquery_last.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/main.css">
<link type="text/css" rel="stylesheet" href="../js/style/validator.css"></link>
<script src="../js/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="../js/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="../js/DateTimeMask.js" type="text/javascript"></script>
<script defer="defer" src="../js/datepicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	//$.formValidator.initConfig({onerror:function(){alert("校验没有通过，具体错误请看错误提示")}});
	$.formValidator.initConfig({formid:"form1",onerror:function(msg){alert(msg)},onsuccess:function(){return true;}});
	
	$("#password1").formValidator({onshow:"请输入密码",onfocus:"6-16个字符，请使用字母加数字或符号的组合密码，不能单独使用字母、数字或符号。",oncorrect:"正确（若密码为空即为不修改密码）"}).inputValidator({min:0,max:16,empty:{leftempty:false,rightempty:false,emptyerror:"密码两边不能有空符号"},onerror:"密码不能为空,请确认"});
	$("#password2").formValidator({onshow:"请输入重复密码",onfocus:"两次密码必须一致",oncorrect:"密码一致"}).inputValidator({min:0,empty:{leftempty:false,rightempty:false,emptyerror:"重复密码两边不能有空符号"},onerror:"重复密码不能为空,请确认"}).compareValidator({desid:"password1",operateor:"=",onerror:"2次密码不一致,请确认"});
	$("#user_mail").formValidator({onshow:"请输入邮箱",onfocus:"邮箱6-100个字符,输入正确了才能离开焦点",oncorrect:"恭喜您,你输对了"}).inputValidator({min:0,max:100,onerror:"你输入的邮箱长度非法,请确认"}).regexValidator({regexp:"^([\\w-.]+)@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.)|(([\\w-]+.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$",onerror:"你输入的邮箱格式不正确"});
	
});

</script>

<style type="text/css" media="all">
body,div{font-size:12px;}
</style>
<body>
<jsp:include page="adminTitle.jsp" flush="true"></jsp:include>
<div id="mainpage">
  <div class="bodytitle">
    <div class="bodytitleleft"></div>
    <div class="bodytitletxt">网站会员信息编辑</div>
  </div>
<form action="../user/webUserUpdateBack.action" method="post" name="form1" id="form1">
<input type="hidden" name="webUser.user_id" value="<s:property value='webUser.user_id' />"/>
  <table width="90%" border="0" align="center" cellpadding="10" cellspacing="1" bgcolor="#E2F5BC" style="margin-top:6px;">
   			<tr>
                <th width="120">用户名：</th>
                <td width="350"><s:property value='webUser.user_name'/></td>
                <td></td>
              </tr>
              
              <tr>
                <th>新密码：</th>
                <td>
					<input type="password" id="password1" name="webUser.user_password" value=""/>
				</td>
                <td><div id="password1Tip"></div> </td>
              </tr>
              <tr>
                <th>确认新密码：</th>
                <td><input name="password2" type="password" id="password2" value=""/></td>
                <td><div id="password2Tip"></div></td>
              </tr>
              <tr>
                <th>邮箱：</th>
                <td><input name="webUser.user_mail" type="text" id="user_mail" value="<s:property value='webUser.user_mail'/>"/>
                	<input type="hidden" id="user_mailbak" value="<s:property value='webUser.user_mail'/>"/>
                </td>
                <td><div id="user_mailTip"></div></td>
              </tr>
              <tr>
              <th></th>
              <td>
              <input type="submit" name="button" id="button" value="提交"/>
    		 <input type="reset" name="button" id="button" value="重置"/>
    		 <input type="reset" name="button" id="button" value="返回" onclick="javascript:history.go(-1)"/>
              </td>
              
              </tr>
  </table>
</form>

</div>
</body>
</html>
